package com.xiaoxx.service;

import com.xiaoxx.common.base.ESVo;
import com.xiaoxx.model.entity.es.CodeXzqh2023;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoxx.model.vo.es.CodeXzqhVo;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author HX
 * @since 2024-03-19
 */
public interface CodeXzqh2023Service extends IService<CodeXzqh2023> {

    /**
     * 通过level获取行政区划
     *
     * @param name
     * @param level
     * @return
     */
    List<CodeXzqhVo> getInfoByLevel(String name, Integer level) throws IOException;


    ESVo getInfoByCode(String code, Integer level, Integer from, Integer size) throws IOException;

    ESVo getChildInfoByCode(String code, String name, Integer from, Integer size) throws IOException;
}
